package final2107.night.day10;

public class Demo {
    public static void main(String[] args) {
        int[] ary = {4,2,0,6};
        int count = 0;
        //为百位取值
        for (int i:ary){
            //为十位取值
            for (int j:ary){
                //为个位取值
                for (int k:ary){
                    if (i!=0 && i!=j && j!=k && i!=k){
                        count++;
                        System.out.print(i*100+j*10+k+" ");
                    }
                }
            }
        }
        System.out.println("满足条件的三位数有:"+count+"个");
    }
}
